//
//  Network+User.swift
//  Swift微博
//
//  Created by 陈竹 on 16/2/26.
//  Copyright © 2016年 陈竹. All rights reserved.
//

import Foundation
extension NetworkTools{
    ///  获取用户信息
    ///
    ///  - parameter access_token: 用户登陆成功返回的token
    ///  - parameter uid:          用户的uid
    ///  - parameter finished:     完成回调
    func loadUser(access_token:String,uid:String,finished:([String:AnyObject]?)->()){
        let urlString="https://api.weibo.com/2/users/show.json"
        let paramets=["access_token":access_token,"uid":uid]
        
        request(.GET, URLString: urlString, parametes: paramets, finished: finished)
    }

}